//
//  NetworkTool.h
//  WWTQ
//
//  Created by JP on 2018/10/26.
//  Copyright © 2018年 Jqert. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Reachability.h"
#import "AFNetworking.h"

typedef void(^SuccBlock)(id responseBody);
typedef void(^FailBlock)(NSString *error);

#define NoErrorForDeleCartItem @"当前没有网络，请联网后再试"

NS_ASSUME_NONNULL_BEGIN

@interface NetworkTool : NSObject

+ (AFHTTPSessionManager *)sharedMangager;

+ (void)requestWeatherMessage:(NSString *)cityID successBlock:(SuccBlock)successBlock failureBlock:(FailBlock)failureBlock;



@end

NS_ASSUME_NONNULL_END
